package com.heima.wemedia.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.wemedia.dto.WmMaterialDto;
import com.heima.model.wemedia.pojo.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface WmMaterialService extends IService<WmMaterial> {

    /**
     * 自媒体素材上传业务
     *
     * @param multipartFile
     * @return
     */
    WmMaterial uploadPicture(MultipartFile multipartFile) throws IOException;

    /**
     * 分页查询自媒体素材列表
     *
     * @param dto
     * @return
     */
    IPage<WmMaterial> queryList(WmMaterialDto dto);
}

